package com.itheima.tliaswebmanagement.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Clazz {

        private Integer page = 1; //页码
        private Integer pageSize = 10; //每页展示记录数
        private Integer id; //ID
        private String name; //班级名称
        private String room; //班级教室
        private LocalDate beginDate; //开课时间
        private LocalDate endDate; //结课时间
        private Integer masterId; //班主任
        private Integer subject; //学科
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private LocalDateTime createTime; //创建时间
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private LocalDateTime updateTime; //修改时间
        private String masterName; //班主任姓名
        private String status; //班级状态 - 未开班 , 在读 , 已结课
}
